package com.cqndt.disaster.device.domain;

import lombok.Data;
import java.util.Date;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.EqualsAndHashCode;
import java.text.SimpleDateFormat;

/**
 * @author lgb
 * @date 2020-8-28
 * @说明 视频监控表
 **/
@Data
@EqualsAndHashCode(callSuper=false)
public class TabVideoMonitoring implements Serializable{

	private static final long serialVersionUID = -4192761238026219240L;

	private Integer id;

    private String deviceName;

    private Integer areaId;

    private String explains;

    private String installPic;

    private String resultPic;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private String ipAddress;

    private String port;

    private String userName;

    private String password;

    private Integer projectId;

    private Integer staticKey;

    private String address;

    private String figure;

    private Date installTime;

    public String getInstallTimeStr() {
        if(null == getInstallTime()){
            return null;
        }
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        String dateString = formatter.format(getInstallTime());
        return dateString;
    }
}